package com.kun.web;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "service-hello",fallback = HelloServiceHystric.class) //声明调用的服务,声明熔断器
public interface HelloInterface {

    @RequestMapping(value = "hello", method = RequestMethod.GET)
    String sayHello(@RequestParam(value = "name") String name);
}
